package org.goj.user.service;

import org.goj.common.entity.user.TeamUser;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 团队用户关联 服务类
 * </p>
 *
 * @author CK
 * @since 2021-05-05
 */
public interface TeamUserService extends IService<TeamUser> {

    /**
     * 验证用户能否访问团队
     *
     * @param teamId 团队ID
     * @param email 用户邮箱
     * @return boolean
     * @author CK
     * @date 2021/5/8 17:59
     */
    boolean listValidate(Integer teamId, String email);
}
